package org.metasketch.graphics;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("graphic-container")
public class GraphicContainer extends GraphicNode {

	List<BaseGraphic> nodes = new ArrayList<BaseGraphic>();

	public GraphicContainer() {

	}

	public GraphicContainer(int i, int j, int k, int l) {
		super(i, j, k, l);
	}

	public List<BaseGraphic> getNodes() {
		return nodes;
	}

	public void setNodes(List<BaseGraphic> points) {
		this.nodes = points;
	}

	public void addNode(BaseGraphic node) {
		nodes.add(node);
	}

	public void removeNode(BaseGraphic graphicNode) {
		nodes.remove(graphicNode);

	}

}
